Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the match_object function argument to a basic wild pattern #496

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ttkingdom
Copy link

Using a simple table created as follow:

-record(person, {id, name}).

mnesia:create_table(person, 
    [{attributes, record_info(fields, person)}]).

The select_pattern function will return the pattern {person, [], []}, and I don't quite understand the logic behind this function. Then the do_query function return no result.

I change the pattern to a basic wild pattern {person, '_', '_'}.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant